* (bug 3782) Throw fatal installation warning if mbstring.func_overload on.
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 28 Oct 2005 09:00:43 +0000 (09:00 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 28 Oct 2005 09:00:43 +0000 (09:00 +0000)
  Why do people invent these crazy options that change language semantics?

RELEASE-NOTES
config/index.php

index 3bfb41b..6a63ab4 100644 (file)
@@ -183,6 +183,9 @@ fully support the editing toolbar, but was found to be too confusing.
 * MySQL 5.0 strict mode fix for moving unwatched pages
 * (bug 3816) Throw edit conflict instead of fatal error when a page is
   moved or deleted during section edit
+* (bug 3782) Throw fatal installation warning if mbstring.func_overload on.
+  Why do people invent these crazy options that change language semantics?
+
 
 === Caveats ===
 
index 0f240c0..02375d6 100644 (file)
@@ -227,6 +227,14 @@ if( ini_get( "magic_quotes_sybase" ) ) {
        <?php
 }
 
+if( ini_get( "mbstring.func_overload" ) ) {
+       $fatal = true;
+       ?><li class='error'><strong>Fatal: <a href='http://www.php.net/manual/en/ref.mbstring.php#mbstring.overload'>mbstring.func_overload</a> is active!</strong>
+       This option causes errors and may corrupt data unpredictably;
+       you cannot install or use MediaWiki unless this option is disabled.
+       <?php
+}
+
 if( $fatal ) {
        dieout( "</ul><p>Cannot install Mediawiki.</p>" );
 }